package com.lin.springcloudalibaba.service;

import com.lin.springcloudalibaba.dao.PaymentDao;
import com.lin.springcloudalibaba.entities.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: lin
 * @description:
 * @time: 2021/8/13 15:40
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;
    @Override
    public int create(Payment payment){
        return paymentDao.create(payment);
    }
    @Override
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    }
}
